wayland: Always attach null surfaces on hide
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 16 Sep 2013 22:39:55 +0000 (18:39 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Oct 2013 22:03:26 +0000 (18:03 -0400)
Destroying the surface isn't really appropriate, as the GtkWindow
is still realized and we won't necessarily know how to reconstruct it.

gdk/wayland/gdkwindow-wayland.c

index 955167063815822ef07faeb377b9042dadd9e10a..70abf77da5696f993249fb9c4233c31a3afe07b1 100644 (file)
@@ -1101,7 +1101,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
 
   if (impl->surface)
     {
-      if (impl->use_custom_surface && !is_destroy)
+      if (!is_destroy)
         {
           wl_surface_attach (impl->surface, NULL, 0, 0);
           wl_surface_commit (impl->surface);